<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>编辑优惠券实例</title>
  </head>
  <body>
	<div class="pageContent">
		<form method="post" action="<%=path %>/favourable/saveFavourable.action" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
			<div class="pageFormContent" layoutH="56">
				<input name="favourableVO.id" type="hidden" value="<s:property value="favourableVO.id" />" />
				
				<p>
					<label>编码:</label>
					<input type="text" value="<s:property value="favourableVO.code" />" name="favourableVO.code" readonly="readonly"/>
				</p>
				<p>
					<label>优惠券：</label>
					<input type="text" value="<s:property value="favourableVO.favourableEntity.name" />" readonly="readonly"/>
					<input type="hidden" value="<s:property value="favourableVO.favourableEntity.id" />" name="favourableEntityId"/>
				</p>
				<p>
					<label>会员卡编码：</label>
					<input type="text" value="<s:property value="favourableVO.memberCardCode" />" readonly="readonly"/>
					<input type="hidden" value="<s:property value="favourableVO.memberCard" />" name="memberCardId"/>
				</p>
				<p>
					<label>获得时间：</label>
					<input name="favourableVO.gainTime" value="<s:property value="favourableVO.gainTime" />" class="date" type="text" size="30" readonly="readonly"/>
				</p>
				<p>
					<label>获得方式：</label> 
					<s:select name="favourableVO.gainManner" list="%{#{0:'商家发放',1:'自主获得',2:'其他'}}" listKey="key" listValue="value" ></s:select>
				</p>
				<p>
					<label>状态：</label> 
					<s:select name="favourableVO.state" list="%{#{0:'可使用',1:'已使用',2:'已过期',3:'已作废'}}" listKey="key" listValue="value" ></s:select>
				</p>
			</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
					</li>
				</ul>
			</div>
		</form>
	</div>
  </body>
</html>